﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcApplication3.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            //this should be how to publish your xrds which contains the openid endpoint address, unfortunately i couldnt get this to work 
            // correctly. I have a suspicion that this isnt working because, we are using localhost:5188 instead of a real domain name 
            ViewData["Message"] = "Welcome, please log in to proceed to the members area";
            Response.AppendHeader(
                "X-XRDS-Location",
                new Uri(Request.Url, Response.ApplyAppPathModifier("~/Home/xrds")).AbsoluteUri);
            return View();
        }
        public ActionResult xrds()
        {
            return View("xrds");
        }
        public ActionResult About()
        {
            return View();
        }

    }
}
